@import "../../../../shared/color";

@border-radius: 0px;

.avatar-drawer {
	background-color: rgba(29, 29, 29, 0.62);
	
	.ant-drawer-content {
		overflow-y: hidden;
	}
}

.profile-card {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	position: relative;
	padding: 30px;
	width: 400px;
	border-radius: @border-radius;
	
	
	.user-info-box-left {
		width: 400px;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	
	.user-info-box-right {
		flex-grow: 1;
	}
	
	.man {
		color: @primary-color;
	}
	
	.woman {
		color: #ff00a2;
	}
	
	.ant-legacy-form-item {
		margin-bottom: 12px;
	}
	
	.avatar {
		margin-top: 6px;
		width: 170px;
		height: 170px;
		border-radius: 50%;
		background-color: #6a6a6a;
		border: 10px solid #e8e8e8;
		overflow: hidden;
		
		img {
			width: 150px;
			height: 150px;
		}
	}
	
	.user-header {
		font-size: 26px;
		padding: 10px 0 44px 68px;
		font-weight: bold;
	}
	
	.user-name {
		font-size: 22px;
		padding: 10px 0 4px 8px;
		font-weight: bold;
		
		& > i {
			font-size: 14px;
		}
	}
	
	.roles {
		font-size: 16px;
		padding: 6px 0 10px;
		font-weight: bold;
		
		& > div {
			text-align: center;
		}
	}
	
	input {
		text-align: left;
		width: 220px;
	}
	
	.profile-row {
		display: flex;
		width: 300px;
		align-items: center;
		
		& > label {
			font-size: 14px;
			width: 80px;
			margin-bottom: 12px;
			font-weight: bold;
		}
	}
	
	.info-row {
		font-size: 14px;
		padding: 8px 0;
		margin-bottom: 12px;
		width: 220px;
		
		&.gender {
			padding: 12px 0;
		}
	}
	
	.button-bar {
		padding: 10px 0;
		
		& > div {
			display: inline-block;
			width: 20px;
		}
	}
}

.profile-error-message {
	width: 310px;
}


.avatar-box {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-wrap: wrap;
	
	.avatar-item {
		width: 74px;
		height: 74px;
		border-radius: 4px;
		margin: 8px 10px;
		position: relative;
		display: flex;
		justify-content: center;
		align-items: center;
		cursor: pointer;
		transition: background-color .4s;
		
		&.selected {
			border-color: @primary-color;
			background-color: rgba(0, 115, 225, 0.15);
		}
		
		&.placeholder {
			height: 1px;
			border: none;
		}
		
		& > img {
			width: 60px;
			height: 60px;
		}
	}
}


@media screen and  (max-width: 1280px) {
	.profile-card {
		.avatar {
			margin-top: 6px;
			width: 130px;
			height: 130px;
			border-radius: 50%;
			background-color: #6a6a6a;
			border: 10px solid #e8e8e8;
			overflow: hidden;
			
			img {
				width: 110px;
				height: 110px;
			}
		}
	}
}